from django.contrib import admin
from models import Xiangmu, ModifyRecord

class XiangmuAdmin(admin.ModelAdmin):
# exclude = ('created_date',)
 list_filter = ('xiaoqujianshefangshi','zhongyaoleibie',)
 list_per_page = 1000
 radio_fields = {"zhongyaoleibie": admin.HORIZONTAL}
 search_fields = ['xiaoquming']
# actions_on_top = False
admin.site.register(Xiangmu, XiangmuAdmin)
admin.site.register(ModifyRecord)
